package com.cskaoyan.weixin.controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.Feedback;
import com.cskaoyan.weixin.service.WxFeedBackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wx/feedback")
public class WxFeedBackController {
    @Autowired
    WxFeedBackService wxFeedBackService;

    @RequestMapping("/submit")
    public BaseRespVo submit(@RequestBody Feedback feedback) {
        wxFeedBackService.submit(feedback);
        return BaseRespVo.ok();
    }


}
